import React, { Component } from 'react'
import ReactDOM from 'react-dom'
import Parent from './parent'
export default class App extends Component {
    render() {
        console.log('根组件render....');
        return (
            <div>
                我是根组件
                <Parent></Parent>
                <button onClick={()=>this.setState({})}>按钮</button>
            </div>
        )
    }
}


ReactDOM.render(<App></App>, document.getElementById('root'))